package zent

import (
	"studygo/sp/a/zinx/ziface"
)

type Request struct {
	//已经和客户端建立连接的数据
	conn ziface.IConnection
	//客户端请求的数据
	//data []byte
	msg ziface.Imessage
}

func (r *Request) GetConnection() ziface.IConnection {
	return r.conn
}

func (r *Request) GetData() []byte {
	return r.msg.GetData()
}

func (r *Request) GetMsgID() uint32 {
	return r.msg.GetMsgId()
}
